package org.csu.assemblyroom.service;

import org.csu.assemblyroom.common.CommonResponse;
import org.csu.assemblyroom.entity.Booking;

import java.util.List;

public interface BookingService {
    //添加预约信息
    CommonResponse<Booking> insertBooking(Booking booking);
    //通过用户获取相关预约信息
    CommonResponse<java.util.List<Booking>> getBookingByUser(String userId);
    //通过房间获取相关预约信息
    CommonResponse<java.util.List<Booking>> getBookingByRoom(String roomNum);
    //通过预约号获取预约信息
    CommonResponse<Booking> getBookingByBookingId(int bookingId);
    //获取所有预约信息
    CommonResponse<List<Booking>> getBookingList();
    //更改预约信息
    CommonResponse<Booking> updateBooking(Booking booking);
    //删除预约信息
    CommonResponse<Booking> deleteBooking(int bookingId);
}
